package businesslogicservice;

import java.rmi.*;
import java.sql.SQLException;
import java.util.ArrayList;

import po.*;

public interface BookBLService extends Remote{
	public ArrayList<BookPO> browseBook(String category) throws RemoteException,SQLException;
	public ArrayList<BookPO> searchBook(String keyWord) throws RemoteException,SQLException;
	public BookPO getBook(int bookID) throws RemoteException,SQLException;
	public ArrayList<String> getCategorys() throws RemoteException,SQLException;
	public void addCategory(String category) throws RemoteException,SQLException;
	public void modifyCategory(String before, String after) throws RemoteException,SQLException;
	public void deleteCategory(String category) throws RemoteException,SQLException;
	public void modifyBook(BookPO book) throws RemoteException,SQLException;
	public void deleteBook(int BookID) throws RemoteException,SQLException;
	public void addBook(BookPO book) throws RemoteException,SQLException;
}

